#include <stdio.h>
char getfridgevalue()
{
 char ch;
  FILE *fp;
  if((fp = fopen("C:/1.txt","rt+")) == NULL)
    {
      	printf("Cannot open file strike any key exit!");
		getchar();
		exit(1);
    }
 rewind(fp);
 fseek(fp,13,0);
 ch=fgetc(fp);
 return ch;
 fclose(fp);
}
char getairconditionvalue(i)
{
 char ch;
 FILE *fp;
 if((fp = fopen("C:/2.txt","rt+")) == NULL)
    {
      	printf("Cannot open file strike any key exit!");
		exit(1);
    }
 rewind(fp);
 fseek(fp,i,0);
 ch = fgetc(fp);
 fclose(fp);
 return ch;
}
void setfridgevalue(char b)
{
 char ch;
 FILE *fp;
  if((fp = fopen("C:/1.txt","rt+")) == NULL)
    {
      	printf("Cannot open file strike any key exit!");
		exit(1);
    }
 ch = b;
 rewind(fp);
 fseek(fp,13,0);
 fputc(ch,fp);
 fclose(fp);
}
void setairconditionvalue(char d[])
{
 char ch;
 FILE *fp1;
 if((fp1 = fopen("C:/2.txt","rt+")) == NULL)
    {
      	printf("Cannot open file strike any key exit!");
		exit(1);
    }
 ch = d[0];
 rewind(fp1);
 fseek(fp1,19,0);
 fputc(ch,fp1);
 ch = d[1];
 fseek(fp1,39,0);
 fputc(ch,fp1);
 ch = d[2];
 fseek(fp1,66,0);
 fputc(ch,fp1);
 ch = d[3];
 fseek(fp1,67,0);
 fputc(ch,fp1);
 fclose(fp1);
}